package com.uduemc.biso.module.basic.service.common.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.uduemc.biso.core.common.dto.CBNodemanageSiteList;
import com.uduemc.biso.core.common.extities.CHostData;
import com.uduemc.biso.module.basic.service.common.mapper.CHostDataMapper;
import com.uduemc.biso.module.basic.service.common.service.CHostService;

@Service
public class CHostServiceImpl implements CHostService {

	@Autowired
	private CHostDataMapper cHostDataMapper;

	@Override
	public PageInfo<CHostData> findListInfos(CBNodemanageSiteList cBNodemanageSiteList) {
		PageHelper.startPage(cBNodemanageSiteList.getPageNumber(), cBNodemanageSiteList.getPageSize());
		List<CHostData> findCHostDataInfos = cHostDataMapper.findCHostDataInfos(cBNodemanageSiteList);
		return new PageInfo<>(findCHostDataInfos);
	}

}
